package com.itheima.mapper;

import com.itheima.pojo.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserMapper {
    /**
     * 查询所有用户
     * @return
     */
    List<User> findAllUsers();

    /**
     * 根据id查询用户信息及其订单
     * @param id
     * @return
     */
    User findUserById(Integer id);
}
